package com.xintong.visualinspection.service.impl;

import java.util.List;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xintong.visualinspection.bean.CheckItem;
import com.xintong.visualinspection.dao.master.CheckItemDao;
import com.xintong.visualinspection.service.BaseService;
import com.xintong.visualinspection.service.CheckItemService;

/**
 * 文件名：UserServiceImpl
 * 版本信息：日期：2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
 */
@Service
public class CheckItemServiceImpl extends BaseService implements CheckItemService {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CheckItemServiceImpl.class);


    @Autowired
    private CheckItemDao checkItemDao;


	@Override
	public List<CheckItem> getAll() {
		// TODO Auto-generated method stub
		return checkItemDao.getAll();
	}


	@Override
	public CheckItem getById(Long id) {
		// TODO Auto-generated method stub
		return checkItemDao.getOne(id);
	}


	@Override
	public List<CheckItem> getByParentId(Long id) {
		// TODO Auto-generated method stub
		return checkItemDao.getByParentId(id);
	}


	@Override
	public void insert(CheckItem checkItem) {
		// TODO Auto-generated method stub
		checkItemDao.insert(checkItem);
	}


	@Override
	public void update(CheckItem checkItem) {
		// TODO Auto-generated method stub
		checkItemDao.update(checkItem);
	}


	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		checkItemDao.delete(id);
	}


	@Override
	public List<CheckItem> getByRuleId(Long id) {
		// TODO Auto-generated method stub
		return null;
	}
}
